# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2022年11月13日
"""
from docx import Document
from docx.enum.section import WD_SECTION
document=Document()
sections = document.sections
print(sections)
print(len(sections))

current_section = document.sections[-1]  # last section in document
print(current_section.start_type)
# NEW_PAGE (2)
new_section = document.add_section(WD_SECTION.ODD_PAGE)
print(new_section.start_type)
# ODD_PAGE (4)